package org.csmzxy.class2333;

public class Example01 {
    public static void main(String[] args){
        Student student = new Student();
        student.age = 18;
        student.name="张三";
        System.out.println("学生的名字是"+student.name);

        Teacher teacher = new Teacher();
        teacher.age=30;
        teacher.name="李四";
        teacher.salary=5000;
        teacher.teach();
        System.out.println(teacher.name+"老师,今年"+teacher.age+"岁了"+",他的薪资是"+teacher.salary);
    }

}
